/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cip.esymons.tesoreria.be;

import java.io.Serializable;

/**
 *
 * @author Gilmar Montoya
 */
public class CierreDocumentoPK implements Serializable {

    private long cieCodigo;
    private long docCodigo;

    public CierreDocumentoPK() {
    }

    public CierreDocumentoPK(long cieCodigo, long docCodigo) {
        this.cieCodigo = cieCodigo;
        this.docCodigo = docCodigo;
    }

    public long getCieCodigo() {
        return cieCodigo;
    }

    public void setCieCodigo(long cieCodigo) {
        this.cieCodigo = cieCodigo;
    }

    public long getDocCodigo() {
        return docCodigo;
    }

    public void setDocCodigo(long docCodigo) {
        this.docCodigo = docCodigo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) cieCodigo;
        hash += (int) docCodigo;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof CierreDocumentoPK)) {
            return false;
        }
        CierreDocumentoPK other = (CierreDocumentoPK) object;
        if (this.cieCodigo != other.cieCodigo) {
            return false;
        }
        if (this.docCodigo != other.docCodigo) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "org.cip.esymons.tesoreria.be.CierreDocumentoPK[cieCodigo=" + cieCodigo + ", docCodigo=" + docCodigo + "]";
    }
}
